import {
    INDEX_ADD
} from '../mutation-types'
export default {
    namespaced:true,//命名空间
    state: { 
        indexcount:0
    },
    // @param (state, getters, rootState, rootGetters)
    getters: {
        indexGetter(state){
            return '￥'+state.indexcount
        }
    },
    // @param context:{state,`arguments`}
    mutations: { 
        [INDEX_ADD](state){
            console.log(++state.indexcount)
        }
    },
    // @param {dispatch,commit,state, getters, rootState, rootGetters}
    actions: { 
        
    }
}